package com.sheng.project.repository;

import com.sheng.project.common.BasicRepository;
import com.sheng.project.model.async.AsyncProcess;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author by ls
 * @date 2023/8/21
 */
@Repository
public interface AsyncProcessRepository extends BasicRepository<AsyncProcess> {

    List<AsyncProcess> findByStatusAndThreadId(String status, Long threadId);

    List<AsyncProcess> findByStatus(String status);
}
